The HTML tag for creating a hypertext link is called an anchor tag. Dreamweaver creates an anchor tag for objects, text, or images you create links from. For example, if in the Document window you selected the text Home Page
, then created a link to a file named home.htm, the HTML source code for the link would look like this:
<a href="home.htm">
Home Page</a>
Before creating links, be sure you understand how document-relative paths, root-relative paths, and absolute paths work. See About document locations and paths.
You can create several types of links in a document:
![]() |
A link to another document or file, such as a graphic, movie, or sound file. |
![]() |
A named anchor link, which jumps to a specific location within a document. |
![]() |
An e-mail link, which opens an e-mail form with the recipient's address already filled in. |
![]() |
A null link, or script link, which enables you to attach behaviors to an object or to create a link that executes JavaScript code. |
Using Dreamweaver, there are several ways to easily create links between documents:
![]() |
Use the Site Map Window to view, create, change, or delete links. |
![]() |
Use Modify > Make Link to select a file to link to. |
![]() |
Use the Property inspector to link to a file, by using the folder icon to browse to and select a file, using the point-to-file icon to select a file, or typing the path of the file. |
![]() |
Use the context menu, choose Make Link, then select a file to link to. |